Repository navigation
fix(console): the Marketplace package page names a suggested binding's permission set by its label - #35273
Merged
objectstack-fleet[bot] merged 3 commits intoNov 19, 2026
Conversation
…s permission set by its label The Marketplace mount of SuggestedBindingsPanel now draws its prompt, toasts and state lines through a shared suggestedSetLabel helper, reading the package's own permission sets on mount; the Studio Access mount uses the same helper over its rail. Claude-Session: https://claude.ai/code/session_01ADHkmR5r2gKPY7ssPrQxQD Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Utp6CbSphdunq2aJq7ktuY Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Utp6CbSphdunq2aJq7ktuY Co-authored-by: Claude <noreply@anthropic.com>
Contributor
Author
|
repo:objectstack#5 · os-bill · session_01Utp6CbSphdunq2aJq7ktuY Final head for L1:
|
Contributor
Author
|
repo:objectstack#5 · os-bill · session_01Utp6CXsZsKmgG1EcKp5bY4 维护者速读
席位核对 — ACCEPT (L1-a) · repo:objectstack#5 · head
|
Contributor
Author
|
repo:objectstack#5 · os-bill · session_01Utp6CbSphdunq2aJq7ktuY Landing · area ux-1 · 2026-11-19T01:37Z
ACCEPT 6996970529 (L1-a) at head |
objectstack-fleet
Bot
deleted the
claude/issue-34094-marketplace-set-label
branch
November 19, 2026 01:55
This was referenced Nov 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Bill · project thread
Fixes #34094
Clause-②: no
Metadata-protocol: none
维护者速读
crm_user)。与 Studio → 访问里同一横幅共用一个取标签的函数。MarketplacePackagePage.tsx(PackageSuggestedBindings,三处挂载改用它)、components/suggestedSetLabel.ts(共享函数与读取 hook)、StudioDesignSurface.tsx(两行,改用共享函数)。pnpm --dir ui/packages/app-shell exec vitest run --root ../.. packages/app-shell/src/console/marketplace/__tests__/MarketplacePackagePage.installedSuggestions-33158.test.tsx,预期 10/10 通过,其中 objectstack#34094 一组 5 条。What changes
ui/packages/app-shell/src/components/suggestedSetLabel.ts(new):suggestedSetLabel(s, sets)names a suggested binding's set by the label of the matching set, falling back topermission_set_namewhen the set is not held or its label is empty.usePackagePermissionSets(packageId)reads the package's own sets once per mount withclient.list('permission', { packageId }), the read the Studio Access rail makes; a refused or failed read yields no sets, so every set is named by its machine name, with no error.MarketplacePackagePage.tsx: the inlinesuggestionStringsobject, which interpolateds.permission_set_name, becomes aPackageSuggestedBindingscomponent that draws the prompt, the state lines and the Grant / Dismiss / Revoke / Reopen toasts throughsuggestedSetLabel. All three mounts on the page (installed-package panel, post-install result, served-deploy panel) use it.StudioDesignSurface.tsx: the Access pillar's localsuggestedSetLabelnow delegates to the shared helper over the rail'sperms, so the two mounts cannot name one set two ways.packages/**is untouched.Tests
describein the existing harnessMarketplacePackagePage.installedSuggestions-33158.test.tsx: the prompt names the label and the read islist('permission', { packageId }); Grant then Revoke, where both toasts and the accepted line name the label; Dismiss, where the toast names the label; CONTROL, a set with an empty label is named by its machine name; CONTROL, a refused read of the sets names the machine name and shows no error toast.suggestedSetLabelwas changed to return the machine name, applied withscripts/ablation-replace.mjs(anchor 1 to 0, blobd286df1btod6744dfb). Result: 7 failed and 24 passed across the Marketplace pin file and the two Studio suggestion pin files (3 Marketplace and 4 Studio label pins red, CONTROLs green). After restore the blob is back tod286df1b, which equals HEAD, andgit diff HEADis empty.setwas changed tos.permission_set_name(blobcf3e4e55to8d97b1d0). Result: 3 failed and 7 passed (the three label pins). After restore the blob is back tocf3e4e55, which equals HEAD.dist/is involved and no rebuild was needed for either leg.Acceptance notes
permission_set_name; nothing here asks for the payload to carry the label.SuggestedBindingsPanel.tsx, inact()on the dismiss/revoke branch (toast.success(action === 'revoke' ? strings.revokedToast(s) : strings.dismissedToast(s))). The Marketplace pin in this PR sees it fire. That card's fix is not part of this PR.__tests__directory,SuggestedBindingsPanel.test.tsxand three Studio Access suites (66 files, 647 tests) ran locally, along with the packagetype-check(bothtscpasses). The whole@object-ui/app-shellsuite (2331 files) was stopped unfinished after 40 minutes on the shared lock, so it is NOT MEASURED locally and left toTest UIin CI.Verification
All readings below are on head
0cef8f75a6(branch merged withorigin/maincdb327fdf0).Targeted tests: 66 files, 647 tests passed
The Marketplace
__tests__directory,SuggestedBindingsPanel.test.tsx, and the Studio suitesaccessSuggestionsReadOnly-33158,accessWording-34795andaccessGuard, run with the shared verify lock:Test Files 66 passed (66),Tests 647 passed (647),VERDICT command-exit 0. The pin file alone, run verbose:Tests 10 passed (10).Package type-check: green
pnpm --filter @object-ui/app-shell run type-checkran bothtsc --noEmitandtsc -p tsconfig.test.jsonand exited 0. This was the first half of a&&chain whose test half then started.Derived gates: 38 families from dispatch-gates --commands
37 families exited 0.
pnpm check:type-check-debtfirst exited 3 (PREREQUISITE NOT MET), because the verify lock was held by this branch's own app-shell suite run. Re-run under the lock, it exited 0 (check-type-check-coverage --re-measure: OK — 0 raw tsc error(s) total). The--ranreconciliation shows 38 derived and 38 run. It reads the type-check-debt family as NOT-MEASURED because the record carries both exits.overlap-check:VERDICT clean exit 0againstorigin/mainand 0 open PR heads.Ablation: both legs red, both restored
Leg A (shared helper returns the machine name): 7 failed and 24 passed. Leg B (Marketplace mount passes the machine name): 3 failed and 7 passed. After each restore the blob equals HEAD and
git diff HEADis empty. Details are under Tests.Not measured locally: the whole
@object-ui/app-shellsuite, which was declared toTest UI, and the repo-widepnpm lint, which CI owns. Dogfood: n/a, because the title has no!and there is no(narrowing)arm.Generated by Claude Code